package com.spring.framework.aop.turing.EalyAopDemo;

import com.spring.framework.aop.turing.Calculate;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class TulingMainClass {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(EalyAopMainConfig.class);
		Calculate tulingCalculate = ctx.getBean("tulingCalculate", Calculate.class);
		tulingCalculate.div(1, 1);

        /*
        ProxyFactoryBean
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(EalyAopMainConfig.class);
        Calculate calculateProxy = ctx.getBean("calculateProxy",Calculate.class);
        System.out.println(calculateProxy.getClass());
        calculateProxy.div(1,1);*/
	}
}
